{% extends "base.html" %}
{% block content %}
    <h1>Chat List</h1>
    {% for chat in users %}
        {% if chat != current_user %}
            <a href="/chat/{{ chat.username }}">
                <div class="chat_user">
                    <img src="../static/images/user/{{ chat.image_file }}" style="width:24px; height:24px; margin-bottom:-14px;">{{ chat.username }}
                </div>
            </a>
        {% endif %}
    {% endfor %}
    <script>
        window.onload = function() {
            document.getElementById("chat_list").className = "active";
        }
    </script>
{% endblock %}